Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#228842 - 29/07/2004 22:21 Hijack v404: ;@MENUEXEC and ReserveMem
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Hijack version 404 is now available. New features since v402 include:

;@MENUEXEC macros for config.ini are now fully implemented. This provides an easy way to run third party apps on demand through the Hijack menu. The config.ini syntax is pretty basic:
Code:
;@MENUEXEC menu_label exec command args


It is recommended, though not required, that the command be prefixed with exec (as shown above).

A final ampersand (&) can also be used at the end of the line to background the command when executed.

Also new in v404 is the "Reserved Memory for Apps" menu entry for use with v3alpha8/v2.01 and beyond (no effect whatsoever with earlier player versions). This provides a simpler alternative/supplement for "ReserveCache" lines from config.ini -- a way to tell the player not to gobble up all available system memory on startup. This is mainly for use with third party apps.

If you use this new feature, you should probably nuke the "ReserveCache" setting from your config.ini to reduce confusion, even though the two are compatible (and summed together in practice).

Cheers


Edited by mlord (30/07/2004 00:47)

Top
#228843 - 30/07/2004 00:10 Re: Hijack v404: ;@MENUEXEC and ReserveMem [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Hijack v408 will be out shortly -- fixes the Reserved Memory display to show in kB instead of bytes.

Cheers

Top
#228844 - 30/07/2004 01:33 Re: Hijack v404: ;@MENUEXEC and ReserveMem [Re: mlord]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
/me runs out to his car to grab the empeg and update hijack

Top
#228845 - 30/07/2004 04:29 Re: Hijack v404: ;@MENUEXEC and ReserveMem [Re: mlord]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
Hello Mark,

After installing the HiJack 404 in my MK2 without additional memory and Alpha8, the player hangs on Buliding playlist database....


Function entered at [<0202acf0>] from [<021305d0>]acf0>] from [<021305d0>]c
Function entered at [<021304f4>] from [<02000104>]
Cou
Function entered at [<02039748>] from [<
r10 = 00000000 r8 = 00000000 r7 = 00000000 r6 = 00000000
r5 = 00000000 r4 = 0000000008 r5 = FFFFFFFF r4 = BFFFF
Restored terminal settings
er
Abno
Remounting first music partition read-only0001r5 = 000000
F
Hijack: intercepting config.ini r7 = 00000000 r6 = 00000000g

Using non-standard cache size 61490 (bonus 4095Mb, adjustment 0)
player.cpp : 579:empeg-car 3.00-alpha8 2004/07/07.000 r4 = 00000000om [<0203c244>]
! memory_stream.cpp : 42:MemoryStream failed to allocate memory.lpha8
Remount
! tunedb_disk.cpp : player(106): memory violation at pc=0x02065828, lr=0x00000 = C01879C8 r5

Function entered at [<0203
010 (bad address=0x0000

Flags: nZCv IRQs on FIQs on Mode USER_32 Segment user
Function e
7000e at

Control: D038517D Table: D038517D DAC: 00000015
10 (bad address=0x00000
Function entered at [<02065810>] from [<02066214>] r8 = 00000000 r7 = 021D3D7C>] from [<02039788>]
r5 = BFFFFACC r4 = BFFFFA90
Function entered at [<020661d8>] from
r10 = 021D3D7C r9 = 0217AB58 r8 = 00000000 r7 = 021D3D7C r4 = BFFFFCD0 cache size 61
r6 = 00000000 r5 = BFFFFB74 r4 = 02207F38
r8 = BFFFFDB8 r7
Function entered at [<0203c158>] from [<0200d940>]0203af38>]
r8 = BFFFFDB8 r7 = BFFFFCD0 r6 = 021D3C08 r5 = 021D3C4C :
r4 = BFFFFB746 = BFFFFE08
r4 = BFFFFB74
Function e
Function entered at [<0200d900>] from [<02039b20>]
! me
F
r6 = 0217AB58 r5 = 00000000 r4 = BFFFFB74
r6 = 0217AB58 r5 = 00000000 r4
Function entered at [<02039878>] from [<02039788>]
Abnormal player
r8 = 00000001
r10 = 0202ACF0 r9 = 00000000 r8 = 00000001 r7 = BFFFF39788>]
r10 = 00000000 r8 = 00000000 r7 = 00000000 r6 = 00000000e/zoneinfo/Atlantic/South_G] from [<0206
r5 = 00000000 r4 = 00000000
Restored terminal settingscondary hard disk
Remounting first music partition read-onlynlplayer(598): memory violat
Remounting second music partition read-onlyyer received signal 11
No secondary hard disk Tab
Abnormal player termination/usr/share/zoneinfo/Atlanti
Player received signal 11s=0x000004c0, code 2)rom
Starting playTimezone: /usr/share/zoneinfo/Atlantic/South_Georgia
er
Hijack: intercepting config.iniijack: intercepting config.ini]

Using non-standard cache size 61490 (bonus 4095Mb, adjustment 0)

Using non-standard cache size 61490 (b
player.cpp : 579:empeg-car 3.00-alpha8 2004/07/07.
Function entered a
se. Bad. 0
=0x00000010 (bad address=0x000004c0, code 2)0 r4 : bffffa9078>] from
ed to buipc : [<02065828>] lr : [<00000010>]
r5 = 000004C0 r4 = 02207F38Func
sp : bffffa78 ip : bffffa90 fp : bffffa8c
F

ld databar10: 021d3d7c r9 : 0217ab58 r8 : bffffacc r1 : 00000000 r0 : 000004c0nction entered at [<02
se. Bad. 0xc0r7 : 00000010 r6 : 02207f48 r5 : 00000000 r4 : bffffa90
r10 = 021D3D7C r9 = 0217AB58
07000e
Flag
r3 : 00000010 r2 : bffffa90 r1 : 00000000 r0 : 000004c0
r5 = 000004C0 r4 = 02207F38FC
Flags: nZCv IRQs on FIQs on Mode USER_3

r8 = BFFFFDB8 r7 = BFFFFCD0 r6 = 021D3C08 r5 = 021D3C4C
r4 = BFFFFB74
Function entered at [<0200d900>] from [<02039b20>]
r6 = 0217AB58 r5 = 00000000 r4 = BFFFFB74
Function entered at [<02039878>] from [<02039788>]
r10 = 0202ACF0 r9 = 00000000 r8 = 00000001 r7 = BFFFFF64
r6 = BFFFFE08 r5 = BFFFFCD0 r4 = BFFFFCD0
Function entered at [<02039748>] from [<0203af38>]
r6 = BFFFFE08 r5 = FFFFFFFF r4 = BFFFFCD0
Function entered at [<0203add0>] from [<0203b094>]
r8 = 00000001 r7 = BFFFFF64 r6 = 021D3CB8 r5 = 00000001
r4 = 021D3BE0
Function entered at [<0203aff4>] from [<0202ad00>]
r8 = 02179F84 r7 = 00000000 r6 = 020000C0 r5 = BFFFFF64
r4 = 00000001
Function entered at [<0202acf0>] from [<021305d0>]
Function entered at [<021304f4>] from [<02000104>]
r10 = 00000000 r8 = 00000000 r7 = 00000000 r6 = 00000000
r5 = 00000000 r4 = 00000000
Restored terminal settings
Remounting first music partition read-only
Remounting second music partition read-only
No secondary hard disk

nothing special im my config.ini:

[options]
Name=Spare Empeg
[user info]
Email=
Phone=
Name=Crazymelki
[network]
DHCP=0
Gateway=192.168.0.3
Netmask=255.255.255.0
IPAddress=192.168.0.52
muteaction=0
mute=-1
[display]
play_count=1
visual_names=1
caching=1
[hush]
hushpercent=10
[volumecap]
enabled=1
[kenwood]
disabled=0
[ramp]
disabled=1
[controls]
stalk_side=none
[tuner]
region=europe
[aux]
source=Sony CD Walkman
title=P800 Wayfinder
artist=GPS Voice or CD Player Output
[power]
off_timeout=120000
[synchronise]
seq_num=8
[wendy]
flag_amount=0
[custom]
wendy=
[searches]
amount=0
[startup]
[menu]
quit=1
sort_playlist=1
[ir_translate]
PopUp0=Tuner,Player,Auxiliary,NextSrc,Info,Visual,KnobSeek,Clock,PopUp1
PopUp1=Shuffle,Repeat,Time,Cancel,PopUp0,Mark
[VisualFavourites_AM]
count=0
[VisualFavourites_AUX]
count=0
[VisualFavourites_DSP]
count=0
[VisualFavourites_FM]
count=0

Going back to 403 the player works again.

bye
_________________________
crazymelki.com

Top
#228846 - 30/07/2004 10:48 Re: Hijack v404: ;@MENUEXEC and ReserveMem [Re: crazymelki]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Go into the Hijack menu (yes, you can do this even with a crashed player), and access the "Reserved Memory for Apps" entry, and reset it back to a reasonable number (like zero).

Cheers

Top
#228847 - 30/07/2004 12:12 Re: Hijack v404: ;@MENUEXEC and ReserveMem [Re: mlord]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
I did it...But it does not help. It was as default on 0 kB.
_________________________
crazymelki.com

Top
#228848 - 30/07/2004 18:37 Re: Hijack v404: ;@MENUEXEC and ReserveMem [Re: crazymelki]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
>Using non-standard cache size 61490 (bonus 4095Mb, adjustment 0)

That line above indicates that the Reserved Memory option in Hijack must have been non-zero at the time. The 61490 is the number of 64KB buffers the player is trying to allocate, which is obviously WAY more than what your player has..

What does the serial log show after setting it to zero in Hijack, and then rebooting the machine?

-ml

Top
#228849 - 30/07/2004 21:21 Re: Hijack v404: ;@MENUEXEC and ReserveMem [Re: mlord]
Waterman981
old hand

Registered: 14/02/2002
Posts: 804
Loc: Salt Lake City, UT
Mine did the same with v408. I just rebuilt the drive last week and have not installed anything on it except v3a8, and hijack. I haven't touched my config.ini yet either.
_________________________
-Michael

#040103696 on a shelf
Mk2a - 90 GB - Red - Illuminated buttons

Top
#228850 - 31/07/2004 01:02 Hijack v409: nuked "Reserved Memory for Apps" [Re: crazymelki]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Okay, I repaired my 16MB Mk2a player and installed the latest v3a8 + Hijack on it, and I get the same problem.

It appears the player software is still pretty stupid about how it detects/measures extra RAM. It's looking for very specific numbers, and screwing up royally when it sees something "non-standard".

Which is exactly what the last four Hijack versions do -- they fiddle with the amount of RAM reported, trying to do the equivalent of "ReserveCache=xx" without the need to wank around on config.ini.

Oh well. Hijack v409 is now released, and removes that feature completely, so things should now work as well as they ever did.

I suppose an alternative would be to leave the code in (I've taken it out for now), and only activate it when more than 16MB of physical RAM is present --> the player seems to handle it fine in those limited cases.

Ya win some, ya lose some.

Cheers

Top
#228851 - 31/07/2004 01:09 Re: Hijack v409: nuked "Reserved Memory for Apps" [Re: mlord]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Darn. I was jubilantly celebrating the demise of ReserveCache, but it rears its ugly head again.
_________________________
- Tony C
my empeg stuff

Top
#228852 - 31/07/2004 03:37 Re: Hijack v409: nuked "Reserved Memory for Apps" [Re: mlord]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
Thanks, that you still support the low memory guys.

bye
_________________________
crazymelki.com

Top
#228853 - 31/07/2004 08:28 Re: Hijack v409: nuked "Reserved Memory for Apps" [Re: mlord]
skibum
enthusiast

Registered: 27/03/2002
Posts: 248
Loc: Swindon, UK
Quote:
I suppose an alternative would be to leave the code in (I've taken it out for now), and only activate it when more than 16MB of physical RAM is present --> the player seems to handle it fine in those limited cases.


Well if you're taking votes, I'd prefer the hijack option for those with more memory.
_________________________
Andy MK2a 60GB Amber 040103916 32mb/Light Kit MK2a 50GB Amber 030102560 32mb

Top
#228854 - 31/07/2004 13:01 Re: Hijack v409: nuked "Reserved Memory for Apps" [Re: tonyc]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
Could this be a "Bug Report" for the new Alpha since it's not detecting extra RAM that well?
_________________________
Brad B.

Top
#228855 - 07/08/2004 14:55 Re: Hijack v404: ;@MENUEXEC and ReserveMem [Re: mlord]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Mark,

Any way you can update MENUEXEC to allow labels with spaces in them? Either by allowing labels in quotes or escaping the space(s) with a backslash? It'd also be nice to have the launch confirmation optional somehow, either globally via a [hijack] setting or per-entry with some syntax in the MENUEXEC command somehow.
_________________________
- Tony C
my empeg stuff

Top
#228856 - 07/08/2004 15:05 Re: Hijack v409: nuked "Reserved Memory for Apps" [Re: SE_Sport_Driver]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
Quote:
Could this be a "Bug Report" for the new Alpha since it's not detecting extra RAM that well?

It's using unsigned arithmetic, so if the amount of memory is less than the player originally shipped with, the calculation wraps round and the player assumes there's nearly 2^32 bytes of extra RAM. This isn't really a bug (I haven't heard of anyone modding their player by chiselling off existing RAM chips), but we'll change it for the next release anyway.

Peter

Top
#228857 - 07/08/2004 20:53 Re: Hijack v409: nuked "Reserved Memory for Apps" [Re: peter]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
That would be grand, peter, as then I could reinstate this feature. Having Hijack be able to account for it's own memory overhead automatically (by under-reporting /proc/kcore to the player) could make everything just a tad more predictable all around.

Cheers

Top
#228858 - 08/02/2007 05:56 Re: Hijack v404: ;@MENUEXEC and ReserveMem [Re: tonyc]
rearviewmirror
journeyman

Registered: 30/07/2001
Posts: 84
Loc: Bangalore, India
Quote:
It'd also be nice to have the launch confirmation optional somehow, either globally via a [hijack] setting or per-entry with some syntax in the MENUEXEC command somehow.


Found this thread while searching to see if I could disable confirmation in MENUEXEC. Did Mark implement this?..

Top
#228859 - 08/02/2007 13:20 Re: Hijack v404: ;@MENUEXEC and ReserveMem [Re: rearviewmirror]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Quote:
Quote:
It'd also be nice to have the launch confirmation optional somehow, either globally via a [hijack] setting or per-entry with some syntax in the MENUEXEC command somehow.


Found this thread while searching to see if I could disable confirmation in MENUEXEC. Did Mark implement this?..


I don't think so.

Top